#! /bin/bash

if $# not -eq 1
then 
    echo "arguments counts error"
fi

user="$1"
if who | grep "$user" > /dev/null
then 
    echo "$user is loggedon"
fi

